package com.mvc.security.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

import com.mvc.framework.model.CompositeKeyAuditableEntity;

@Entity(name = "F_MENU_LINK")
@IdClass(MenuLinkPK.class)
public class MenuLink extends CompositeKeyAuditableEntity {
	@Id
	private Integer menuId;
	@Id
	private String url;
	
	private String remark;

	public String getUrl() {
		return url;
	}

	public Integer getMenuId() {
    	return menuId;
    }

	public void setMenuId(Integer menuId) {
    	this.menuId = menuId;
    }

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRemark() {
    	return remark;
    }

	public void setRemark(String remark) {
    	this.remark = remark;
    }
}

class MenuLinkPK implements Serializable {
	private Integer menuId;
	private String url;
	public String getUrl() {
		return url;
	}

	public Integer getMenuId() {
    	return menuId;
    }

	public void setMenuId(Integer menuId) {
    	this.menuId = menuId;
    }

	public void setUrl(String url) {
		this.url = url;
	}
}
